home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGMISC
/
FPCHELP.LZH
/
EQUCOLON.HLP
< prev
next >
Wrap
Text File
|
1988-07-28
|
2KB
|
49 lines
\ EQUCOLON.HLP Help file for Constant Variables
Constants as Variables are called VALUEs
(=:) ( N1 -- )
Primitive used by the following definitions, gets compiled into colon
definition, and stores value on the stack into the following defs body
field. May NOT be used on the command line.
=: <name> ( N1 -- )
Used to assign values into the body of <name>, like VARIABLEs or
VALUEs. May be used on the command line. Typical usage is as
follows: 34 VALUE MYVAL \ create a VALUE
: CHANGE_MYVAL ( --- ) \ define a word to
23 =: MYVAL ; \ change MYVAL
INCR> <name> ( -- )
Increment the body of <name> by one, used to modify the following
VALUE or VARIABLE. Use only in a COLON definition.
DECR> <name> ( -- )
Decrement the body of <name> by one, used to modify the following
VALUE or VARIABLE. Use only in a COLON definition.
+!> <name> ( n1 -- )
Increment the body field of <name> by value n1 on the stack.
Typically used to modify a VALUE or VARIABLE. Use only in a COLON
definition.
!> <name> ( n1 -- )
Store the value n1 on the stack into the body field of <name>.
Typically used to modify a VALUE or VARIABLE. May be used on the
command line.
@> <name> ( -- n1)
Fetch the value n1 from the body field of <name> to the stack.
Typically used to modify a VALUE or VARIABLE. May be used on the
command line.
ON> <name> ( --- )
Turn on the VALUE or VARIABLE <name> following. Somewhat faster
than <name> ON. Use only in a COLON definition.
OFF> <name> ( --- )
Turn off the VALUE or VARIABLE <name> following. Somewhat faster
than <name> OFF. Use only in a COLON definition.